package com.secsbrain.cloudconsole.biz.constant;

/**
 * 对枚举数据的定义
 * 
 * @author zhaoyi
 *
 */
public class EnumDefinition {
	
	/**
	 * 工单类型  0-待受理 ，1-待处理，2-待确认，3-已关闭
	 * 
	 * @author zhaoyi
	 */
	public enum WorkSheetStatus {
		CREATE(0, "待受理"), 
		DEAL(1, "待处理"), 
		FINISH(2, "待确认"), 
		CLOSE(3, "已关闭");

		private Integer code;
		private String desc;

		WorkSheetStatus(Integer code, String desc) {
			this.code = code;
			this.desc = desc;
		}

		public Integer getCode() {
			return this.code;
		}

		public String getDesc() {
			return this.desc;
		}
	}

	/**
	 * 工单类型
	 * 
	 * @author zhaoyi
	 */
	public enum WorkSheetType {
		SERVER(0, "SER","服务器"), 
		DEPLOY(1, "DEP","自动化发布"), 
		DOMAIN(2, "DOM","域名"), 
		CONFIG(3, "CON","配置"), 
		INSTALL(4, "INS","软件安装"), 
		OTHER(-1, "OTH","其他");

		private Integer code;
		private String prefix;
		private String desc;

		WorkSheetType(Integer code, String prefix, String desc) {
			this.code = code;
			this.prefix = prefix;
			this.desc = desc;
		}

		public Integer getCode() {
			return this.code;
		}
		
		public String getPrefix() {
			return this.prefix;
		}

		public String getDesc() {
			return this.desc;
		}
	}
	
	/**
	 * 服务器子类型
	 * 
	 * @author zhaoyi
	 */
	public enum ServerSubType {
		APPLY(0, "申请"), 
		CHANGE(1, "变更配置"), 
		PARAM(2, "调整系统参数"), 
		OTHER(-1, "其他");

		private Integer code;
		private String desc;

		ServerSubType(Integer code, String desc) {
			this.code = code;
			this.desc = desc;
		}

		public Integer getCode() {
			return this.code;
		}

		public String getDesc() {
			return this.desc;
		}
	}
	
	/**
	 * 自动化发布子类型
	 * 
	 * @author zhaoyi
	 */
	public enum DeploySubType {
		APPNEW(0, "应用新接入"), 
		CLOUDGROUP(1, "cloud分组发布接入"), 
		OTHER(-1, "其他");

		private Integer code;
		private String desc;

		DeploySubType(Integer code, String desc) {
			this.code = code;
			this.desc = desc;
		}

		public Integer getCode() {
			return this.code;
		}

		public String getDesc() {
			return this.desc;
		}
	}
	
}
